package com.exampletest.mapper;

import com.exampletest.model.Enterprise;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface EnterpriseMapper {
    Enterprise findByAccount(@Param("account") String account);
    int insertEnterprise(Enterprise enterprise);
    List<Enterprise> findAll();
    Enterprise findById(@Param("id") Integer id);
    int updateEnterprise(Enterprise enterprise);
    int deleteById(@Param("id") Integer id);
    List<Enterprise> searchEnterprises(@Param("keyword") String keyword);
    Enterprise findByAccountAndPassword(@Param("account") String account, @Param("password") String password);
}